import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";

//导入pinia持久化插件
import PiniaPluginPersistedstate from "pinia-plugin-persistedstate";

//导入animate.css
import "animate.css"

import "./assets/scss/index.css";
//导入element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import PageView from "./components/PageView.vue";

const app = createApp(App);
const pinia = createPinia();
app.use(pinia);

app.component("page-view", PageView);

app.provide("baseURL", baseURL);
app.use(ElementPlus, {
  locale: zhCn,
});
//pinia去加载持久化插件
pinia.use(PiniaPluginPersistedstate);
app.use(router);
app.mount("#app");
